#ifndef VPATHEDITDIALOG_H
#define VPATHEDITDIALOG_H

#include <QDialog>
#include <QPushButton>
#include <QListWidgetItem>

namespace Ui {
class VPathEditDialog;
}

class VPathEditDialog : public QDialog
{
    Q_OBJECT

public:
    explicit VPathEditDialog(QWidget *parent, QString source_path, QStringList list);
    ~VPathEditDialog();

    enum TYPE
    {
        FOLDER,
        FILE
    };

    QStringList _list;
    int _type;
    QString _filter;
    QString _source_path;

private slots:
    void on_list_widget_paths_doubleClicked(const QModelIndex &index);

    void on_btn_new_clicked();

    void on_ben_del_clicked();

    void on_btn_up_clicked();

    void on_btn_down_clicked();

    void on_btn_ok_clicked();

    void on_btn_cancel_clicked();

private:
    Ui::VPathEditDialog *ui;
    void on_path_btn_clicked();
};

#endif // VPATHEDITDIALOG_H
